/** @type {import('next').NextConfig} */
const path = require('path');

module.exports = {
  reactStrictMode: true,
  i18n: {
    locales: ['en', 'cn'],
    //locales: ['en'],
    defaultLocale: 'en',
  },
  sassOptions: {
    includePaths: [path.join(__dirname, 'styles')],
    prependData: `@import '/src/styles/common.scss';`,
  },
  webpack: config => {
    config.resolve.alias['@'] = path.resolve(__dirname + '/src');
    return config;
  }
}
